package cn.edu.nbpt.campus_api.service.blog;

import cn.edu.nbpt.campus_api.model.Page;
import cn.edu.nbpt.campus_api.model.blog.entity.Article;

import java.time.LocalDate;
import java.util.List;

public interface ArticleService {
    Page<Article> selectArticleList(String title, Integer state, String author, Integer categoryId, LocalDate publishStartTime, LocalDate publishEndTime, Integer pageNum, Integer pageSize);

    Article selectArticle(Integer id);

    Integer insertArticle(Article article);

    Integer updateArticle(Article article);

    Integer deleteArticle(List<Integer> ids);
}
